/**
 * @ author: 汪孟苹
 */
define(["jquery","bbcare",
    "scprit/assess/app/monthlyAssess/monthlyAssessDetail.servers.js",
    "scprit/assess/app/monthlyAssess/monthlyAssessDetail.ui.js",
    "scprit/assess/app/monthlyAssess/monthlyAssessDetail.event.js"],
    function ($,$bb,$servers,$ui,$event) {
    var monthlyAssessDetail = {};

    /**
     * 请求宝宝基本信息成功后的回调函数
     */
    var ajaxAssessDetailInfoCallBack = function(data){
    	$ui.infoInit({
    		"id":"monthlyAssessDetailInfo",
    		"data":data
    	});
    }

    monthlyAssessDetail.init = function(){
    	var workOrderId = $servers.getPageParams().workOrderId;
        var params = {
            "workOrderId":workOrderId, 
            "type":"01"
        };
    	$servers.ajaxAssessDetailInfo(params,ajaxAssessDetailInfoCallBack);
    	$servers.ajaxWorkorderResult(params,$event.ajaxWorkorderResultCallBack);
    }

    return monthlyAssessDetail;
});